package com.Lishuai.Servce;

import com.Lishuai.Pojo.Book;
import com.Lishuai.Pojo.User;
import com.github.pagehelper.PageInfo;
import org.springframework.core.io.FileSystemResource;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface UserServce {
    //用户登录
    public boolean login(User user);
    //用户注册
    public int addUser(User user);
    //用户更换头像
    public String changeHeadImg(int id, MultipartFile[] filePic) throws Exception;
    //按分类搜索
    public List<Book> sekect(Book book);
    //获取全部书籍信息
    public List<Book> findAll();
    //购买
    public Integer buyBook(User user,Book book);
    public String  getImage(int id);
    public void recharge(int id,double money);
    public PageInfo<Book> getBookPage(int pages);
}
